package com.klb.action.catalog;

import com.klb.service.catalog.impl.QuitServiceCatalogImpl;
import com.opensymphony.xwork2.ActionSupport;

/**
 * Created by fujia on 2016/6/1.
 */
public class QuitActionCatalog extends ActionSupport {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private QuitServiceCatalogImpl quitServiceCatalog;


	public void setQuitServiceCatalog(QuitServiceCatalogImpl quitServiceCatalog) {
		this.quitServiceCatalog = quitServiceCatalog;
	}



	@Override
    public String execute() throws Exception {

        if (this.quitServiceCatalog.quitIsSuccess()){
            return SUCCESS;
        }

        return INPUT;
    }


}
